package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.TempAirdropRecord;
import com.sc.nft.entity.TempCityServerCentre;
import com.sc.nft.mapper.TempAirdropRecordMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 朱梦晨
 * @Description:
 * @date 2024-07-27
 */
@Slf4j
@Repository
public class TempAirdropRecordDao extends ServiceImpl<TempAirdropRecordMapper, TempAirdropRecord> {

    public List<TempAirdropRecord> getTempAirdropRecordList(Long exportRecordsId){
        LambdaQueryWrapper<TempAirdropRecord> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TempAirdropRecord::getExportRecordsId,exportRecordsId);
        wrapper.eq(TempAirdropRecord::getIsDelete, Boolean.FALSE);
        return list(wrapper);
    }

}
